package com.dylon.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 接口请求及返回参数
 */
@Data
public class SysInterfaceParam extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long    paramId;
    private Long    interfaceId; //'所属接口',
    private String  paramName; //'参数名称',
    private String  dataType; //'参数数据类型',
    private String  description; //'参数描述',
    private String  required; //'参数是否非空：0否，1是',
    private String  place; //'参数位置',
    private String  paramDefault; //'参数默认值',
    private String  paramType; //'参数类型：0请求参数；1响应参数',

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("paramId", getParamId())
                .append("interfaceId", getInterfaceId())
                .append("paramName", getParamName())
                .append("dataType", getDataType())
                .append("description", getDescription())
                .append("required", getRequired())
                .append("place", getPlace())
                .append("paramDefault", getParamDefault())
                .append("paramType", getParamType())
                .toString();
    }
}
